﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCUserLog.cs
// project ：YunCMS
// Build time：2012-09-09
// modify:
// description:
// ===================================================================
using System;
namespace YunCMS.Model
{
	/// <summary>
	///YCUserLog Model
	/// </summary>
	[Serializable]
	public class YCUserLog
	{
		#region 
		private long _id;
		private int _userid;
		private string _username = String.Empty;
		private string _action = String.Empty;
		private DateTime? _actiontime;
		private string _ipaddress = String.Empty;
		private string _note = String.Empty;
		private string _module = String.Empty;
		#endregion
		
		#region 
		///<summary>
		///Constructor
		///</summary>
		public YCUserLog()
		{
		}
		///<summary>
		///Constructor
		///</summary>
		public YCUserLog
		(
			long id,
			int userid,
			string username,
			string action,
			DateTime? actiontime,
			string ipaddress,
			string note,
			string module
		)
		{
			_id         = id;
			_userid     = userid;
			_username   = username;
			_action     = action;
			_actiontime = actiontime;
			_ipaddress  = ipaddress;
			_note       = note;
			_module     = module;
			
		}
		#endregion
		
		#region 
		
		///<summary>
		///ID
		///</summary>
		public long ID
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///UserID
		///</summary>
		public int UserID
		{
			get {return _userid;}
			set {_userid = value;}
		}

		///<summary>
		///UserName
		///</summary>
		public string UserName
		{
			get {return _username;}
			set {_username = value;}
		}

		///<summary>
		///Action
		///</summary>
		public string Action
		{
			get {return _action;}
			set {_action = value;}
		}

		///<summary>
		///ActionTime
		///</summary>
		public DateTime? ActionTime
		{
			get {return _actiontime;}
			set {_actiontime = value;}
		}

		///<summary>
		///IPAddress
		///</summary>
		public string IPAddress
		{
			get {return _ipaddress;}
			set {_ipaddress = value;}
		}

		///<summary>
		///Note
		///</summary>
		public string Note
		{
			get {return _note;}
			set {_note = value;}
		}

		///<summary>
		///Module
		///</summary>
		public string Module
		{
			get {return _module;}
			set {_module = value;}
		}
	
		#endregion	
	}
}



